package com.hs.srm.admin.modules.requisition.vo;


import com.alibaba.fastjson.annotation.JSONField;
import com.hs.srm.base.common.annotation.DictMapping;
import com.hs.srm.base.common.utils.DictDataUtil.DictType;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;


/**
 * 非生产性采购申请货源分配
 *
 * @author yanfei
 * @date 2019年6月23日
 */
@Getter
@Setter
@ToString
public class SupplyGoodsEntityVO implements Serializable {


    private static final long serialVersionUID = -3000571191963686401L;


    private String pkId; //行项目id
    private int goodsStatus; //货源状态
    private String purchRequestCode;//采购申请编码

    private String purchRequestItemCode;//采购申请行项目号
    @DictMapping(type = DictType.CGSQLX)
    private String purchRequestType;//采购申请类型
    private String createdBy;//采购申请者

    private String purchRequestDept;//采购申请部门

    @DictMapping(type = DictType.KMLB)
    private String subjectCategory;//采购申请科目类别
    @DictMapping(type = DictType.CGZ)
    private String purchGroup;//采购组
    @DictMapping(type = DictType.CGZZ)
    private String purchOrg;//采购组织
    private String materialCode;//物料编码
    private String materialDesc;//物料描述
    @DictMapping(type = DictType.GC)
    private String factory;//工厂

    @DictMapping(type = DictType.KCDD)
    private String storageLocation;//库存地址
    @DictMapping(type = DictType.WLZ)
    private String materialGroup;//物料组


    private String measureUnit;//单位
    @DictMapping(type = DictType.CBZX)
    private String costCenter;//成本中心

    private String internalOrderCode;
    private String mainAssetsCode;

    private String assetsSencondCode;
    private String usePeople; //使用人
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date requestDate; //需求日期
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date deliveryDate; //交货日期


    private String vendorCode; //供应商编码
    private String vendorName; //供应商名称

    private java.math.BigDecimal taxPrice; //含税价格

    private String priceUnit; //价格单位
    @DictMapping(type = DictType.BZ)
    private String currency; //币种
    @DictMapping(type = DictType.SDM)
    private String taxCode; //税码

    private java.lang.String ledgerAccount;//总账科目

    private java.lang.String applier; //申请者
    private java.math.BigDecimal quantity; //货源分配所得数量
    private java.lang.String payCondition; //付款条件
    private java.lang.String i18nTradeTerms; //国际贸易条款
    private java.math.BigDecimal applyQty; //申请数量
    private String remark; //备注
    private java.lang.String srmCode; //临时供应商代码

    /**
     * 送货地址
     */
    private String deliveryAddress;
    /**
     * 试用次数
     */
    private Integer reason;
    //部门主管
    private String sectionSupervisor;
    //规格
    private String specification;


}
